package Test_11_20;
import java.util.Scanner;
public class Test3 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int count = Integer.bitCount(n);
        System.out.println(count);
    }
}
